package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Event;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EventMapper  {


    int insert(Event event);

    /**
     * 删除
     */
    int deleteById(Integer id);

    /**
     * 修改
     */
    int updateById(Event event);

    /**
     * 根据ID查询
     */
    Event selectById(Integer id);

    /**
     * 查询所有
     */
    List<Event> selectAll(Event event);
}
